import request from '@/utils/request'

const bankCard = {
    // 查询列表
    getList(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/listBankCards.html',
          method: 'post',
          data: query
        })
    },
    // 解除绑定
    romoveBind(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/release.html',
          method: 'post',
          data: query
        })
    },
    // 添加银行卡
    addBankCard(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/addBankCard.html',
          method: 'post',
          data: query
        })
    },
    // 银行添加的详情
    addBankCardInfo(query){
        return request({
            url: '/com.mmk.reservation.api.AdminHospitalInformationProvider/1.0.0/getRegisterInfo.html',
            method: 'post',
            data: query
          })
    },
    // 编辑银行卡
    updateBankCard(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/updateBankCard.html',
          method: 'post',
          data: query
        })
    },
    // 回填打款金额
    moneyPost(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/verifyRandomAmount.html',
          method: 'post',
          data: query
        })
    },
    // 编辑详情
    updateDetail(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/getBankCard.html',
          method: 'post',
          data: query
        })
    },
    // 手机验证码获取
    sendmsg(query) {
        return request({
          url: '/com.mmk.reservation.api.AdminMsgProvider/1.0.0/sendMsgCommon.html',
          method: 'post',
          data: query
        })
    },
    // 绑卡验证码
    addBankCard(query) {
        return request({
          url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/addBankCard.html',
          method: 'post',
          data: query
        })
    },
    // 绑卡确认
    submitBank(query){
        return request({
            url: '/com.mmk.pay.api.OpenMerchantBankCardProvider/1.0.0/addBankCardConfirm.html',
            method: 'post',
            data: query
        })
    },
    // 银行卡下拉
    bankDropdownList(query) {
        return request({
          url: '/com.mmk.pay.api.OpenBankCodeProvider/1.0.0/bankDropdownList.html',
          method: 'post',
          data: query
        })
    },
    // 获取企业账户名称
    getHospitalInfoByHospitalId(query) {
        return request({
          url: '/com.mmk.reservation.api.AdminHospitalInformationProvider/1.0.0/getHospitalInfoByHospitalId.html',
          method: 'post',
          data: query
        })
    },
    // 委托书下载
    // downloadFile() {
    //     return request({
    //       url: '/downloadFile',
    //       method: 'post',
    //     })
    // },
}

export default bankCard

